package com.hn.kiss.modules.sys.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value="LoginResultDTO对象", description="登录返回信息DTO")
public class LoginResultDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "角色代码")
    private String roleCode;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "头像")
    private String headImg;

    public LoginResultDTO(){}

    public LoginResultDTO(String token, String userId, String roleCode, String nickname, String sex, String headImg) {
        this.token = token;
        this.userId = userId;
        this.roleCode = roleCode;
        this.nickname = nickname;
        this.sex = sex;
        this.headImg = headImg;
    }
}
